<template>
	<view>
		<view>
			<u-collapse accordion>
			    <u-collapse-item
				  v-for="(item, index) in merchantHelpCenterList" :key="index"
			      :title="(index+1)+'、'+item.dictValue"
				  :name="item.dictValue"
			    >
			      <text class="u-collapse-content">
					  {{ item.remark }}
					  
				  </text>
			    </u-collapse-item>
			  </u-collapse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				merchantHelpCenterList: []
			}
		},
		onLoad() {
			this.merchantHelpCenterDict();
		},
		methods: {
			//帮助中心查询业务字典
			merchantHelpCenterDict(){
				uni.showLoading({
					title: '加载中',
					mask: true
				})
				this.$request({
					url: '/blade-client-business/app/dict/getDictList',
					type: 'GET',
					data: {'code': 'merchant_help_center'}
				}).then(res => {
					uni.hideLoading();
					this.merchantHelpCenterList = res.data;
				}).catch(err =>{
					uni.hideLoading();
				})
			},
		}
	}
</script>

<style>

</style>
